package com.vol.entity.pager;

import java.util.ArrayList;
import java.util.List;

/**
 * 全局统一返回结果类
 */
public class ResultPager<T> {
    private int status;

    private int total;

    private String msg;

    private List<T> rows;

    private String summary;
    private String extra;

    public ResultPager(){
        this.total = 0;
        this.status = -1;
        this.rows = new ArrayList<>();
    }


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}